package dfbz.demo03;

public class Test03 {
    public static void main(String[] args) {
        int i;
        int j;
        long sum = 0;
        for(i = 1; i <= 7; i++){
            int t = 1;
            for(j = 1; j <= i; j++){
                t *= j;
            }
            sum += t;
        }
        System.out.println(sum);
    }
}
